
import { handleInitAgreementPrivacy, handleInitAgreementService } from "@/common/util";

import { makeAutoObservable } from "mobx";

class AgreementsStore {
    privacyContent: Array<any>= []
    serviceContent: any[] = []
    constructor() {

        makeAutoObservable(this)
    }
    async handleInitPrivacy() {
        const servicePrivacyRes = await handleInitAgreementService('blogger') 
        this.serviceContent = servicePrivacyRes.content
         const privacyRes = await handleInitAgreementPrivacy('blogger') 
         this.privacyContent = privacyRes.content
    }
}

export default AgreementsStore;
